<!doctype html>
<html lang="en">
<head>
    <title>Code coverage report for src/components/Shares.vue</title>
    <meta charset="utf-8" />
    <link rel="stylesheet" href="..\..\prettify.css" />
    <link rel="stylesheet" href="..\..\base.css" />
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <style type='text/css'>
        .coverage-summary .sorter {
            background-image: url(..\..\sort-arrow-sprite.png);
        }
    </style>
</head>
<body>
<div class='wrapper'>
  <div class='pad1'>
    <h1>
      <a href="..\..\index.html">All files</a> / <a href="index.html">src/components</a> Shares.vue
    </h1>
    <div class='clearfix'>
    </div>
  </div>
  <div class='status-line low'></div>
<pre><table class="coverage">
<tr><td class="line-count quiet">1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325</td><td class="line-coverage quiet"><span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-no">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span>
<span class="cline-any cline-neutral">&nbsp;</span></td><td class="text"><pre class="prettyprint lang-js">&lt;template&gt;
	&lt;div id="app"&gt;
	
		&lt;div ref="box" class="banners"
			style="background-color: #000000;position: relative;"&gt;
			&lt;img style="height:100vh;width:100vw;pointer-events:none;" src="/static/img/haibao.png" crossorigin="anonymous" alt=""&gt;
			&lt;!-- &lt;div class="heads clearfix" style="position: absolute;top:30px ;z-index: 1;left: 30px;"&gt;
				&lt;div class="fl"&gt;
&nbsp;
					&lt;img :src="info.logo" alt="" crossorigin="anonymous" style="height: 30px;width: 30px;"&gt;
				&lt;/div&gt;
				&lt;div class="fl" style="margin-top:3px ;margin-left:10px ;"&gt;
					&lt;img :src="info.topimg" alt="" crossorigin="anonymous" style="height: 24px;"&gt;
				&lt;/div&gt;
			&lt;/div&gt; --&gt;
      &lt;div id="qrcodes" style="margin: 0 auto;"&gt;&lt;/div&gt;
			&lt;!-- &lt;div class="boss"
				style="position: absolute;top:60%;border-radius: 12px;display: flex;flex-direction: column;justify-content: center;width: 100%;left: 0%;"&gt;
				&lt;div id="qrcodes" style="width: 150px;height: 150px;margin: 0 auto;"&gt;&lt;/div&gt;
				&lt;div style="text-align: center;color: #e1bb7a;font-weight: bold;padding: 15px 0 0 ;"&gt;投火力值入口&lt;/div&gt;
			&lt;/div&gt; --&gt;
&nbsp;
		&lt;/div&gt;
	
&nbsp;
		&lt;!-- &lt;div style="color: #ffffff;text-align: center;margin-top: 20px;" @click="draw()"&gt;点击生成海报&lt;/div&gt; --&gt;
&nbsp;
		&lt;!-- &lt;div class="cavas" ref="addAlert"&gt;
			
		&lt;/div&gt; --&gt;
		&lt;div class="sharesss"&gt;
			&lt;van-overlay :show="show" @click="show = false"&gt;
				&lt;div style="position: fixed;width: 80%;left: 10%;top: 5%;" @click.stop&gt;
					&lt;img :src="imgUrl" alt="" style="border:none;" crossorigin="anonymous"&gt;
					&lt;div v-show="!weixin" @click="downImg()"
						style="color: #ffffff;text-align: center;padding-top: 20px;line-height: 36px;"&gt;下载图片&lt;/div&gt;
					&lt;div v-show="weixin" style="color: #ffffff;text-align: center;padding-top: 20px;line-height: 36px;"&gt;
						长按图片保存&lt;/div&gt;
				&lt;/div&gt;
			&lt;/van-overlay&gt;
		&lt;/div&gt;
&nbsp;
&nbsp;
		&lt;!-- &lt;div class="h-50"&gt;&lt;/div&gt; --&gt;
		&lt;!--加载中的动画--&gt;
		&lt;div id="Loading" v-show="loadings"&gt;
			&lt;div class="loader-inner ball-beat"&gt;
				&lt;div&gt;&lt;/div&gt;
				&lt;div&gt;&lt;/div&gt;
				&lt;div&gt;&lt;/div&gt;
			&lt;/div&gt;
		&lt;/div&gt;
&nbsp;
	&lt;/div&gt;
&nbsp;
&lt;/template&gt;
&lt;style&gt;
	@notice-bar-text-color: #000000;
&nbsp;
	.sharesss .van-overlay {
		background-color: rgba(0, 0, 0, .8) !important;
	}
&nbsp;
	.clearfix {
		*zoom: 1;
	}
&nbsp;
	/*兼容IE清除浮动*/
	.clearfix:after {
		content: "\200B";
		height: 0;
		display: block;
		visibility: hidden;
		clear: both;
	}
&nbsp;
	/*清除浮动*/
	#pad-w .van-list {}
&lt;/style&gt;
&lt;style scoped&gt;
&nbsp;
  #qrcodes{
    position: absolute;
    bottom: 11vh;
    left: 15vw;
    /* width: 50vw !important;
    height: 50vw !important; */
  }
 
&lt;/style&gt;
&lt;script&gt;
<span class="cstat-no" title="statement not covered" >	import Vue from 'vue';</span>
<span class="cstat-no" title="statement not covered" >	import QRCode from 'qrcodejs2'</span>
<span class="cstat-no" title="statement not covered" >	import {</span>
		Overlay
	} from 'vant';
&nbsp;
<span class="cstat-no" title="statement not covered" >	Vue.use(Overlay);</span>
	import {
		Toast
	} from 'vant';
<span class="cstat-no" title="statement not covered" >	Vue.use(Toast);</span>
<span class="cstat-no" title="statement not covered" >	import html2canvas from 'html2canvas';</span>
<span class="cstat-no" title="statement not covered" >	import wx from 'weixin-js-sdk';</span>
	export default {
<span class="fstat-no" title="function not covered" >		data() {</span>
<span class="cstat-no" title="statement not covered" >			return {</span>
				info: [],
				value: '',
				description: '',
				imgUrl: '',
				QRImgUrl: '',
				QRlink: 'www.xxx.com',
				loadings: true,
				show: false,
				weixin: true,
			}
		},
		components: {},
<span class="fstat-no" title="function not covered" >		created: function() {</span>
&nbsp;
<span class="cstat-no" title="statement not covered" >			this.$emit('footer', false);</span>
&nbsp;
		},
&nbsp;
&nbsp;
<span class="fstat-no" title="function not covered" >		mounted() {</span>
<span class="cstat-no" title="statement not covered" >			this.id = this.$route.query.id;</span>
<span class="cstat-no" title="statement not covered" >			this.recordapi();</span>
<span class="cstat-no" title="statement not covered" >			this.getShareInfo();</span>
<span class="cstat-no" title="statement not covered" >			this.is_weixn();</span>
		},
<span class="fstat-no" title="function not covered" >		activated() {</span>
<span class="cstat-no" title="statement not covered" >			if (this.$route.meta.keepAlive) {</span>
<span class="cstat-no" title="statement not covered" >				this.$emit('footer', false);</span>
			}
		},
<span class="fstat-no" title="function not covered" >		metaInfo() {</span>
<span class="cstat-no" title="statement not covered" >			const title = '个人分享'</span>
<span class="cstat-no" title="statement not covered" >			return {</span>
				title,
				meta: [{
						description: this.info.description
					},
					{
						keywords: this.info.keyword
					},
				]
			}
		},
		methods: {
<span class="fstat-no" title="function not covered" >			getShareInfo() {</span>
			      
			         // 只需要传地址就好，其他后端都会写好来
<span class="cstat-no" title="statement not covered" >					let url=location.href.split('#')[0]</span>
<span class="cstat-no" title="statement not covered" >					let wPath = window.document.location.href;	</span>
<span class="cstat-no" title="statement not covered" >					 let pathName =  window.document.location.pathname;</span>
<span class="cstat-no" title="statement not covered" >					  let pos = wPath.indexOf(pathName);</span>
					  
					  // 获取主机地址，如：http://localhost:8080
<span class="cstat-no" title="statement not covered" >					  let localhostPath = wPath.substring(0, pos);</span>
					
<span class="cstat-no" title="statement not covered" >					  console.log(localhostPath);</span>
				
<span class="cstat-no" title="statement not covered" >					var that = this;</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >					that.$api.post("/Index/jssdk", {url:url }).then(res =&gt; {</span></span>
<span class="cstat-no" title="statement not covered" >			        const config = res.data;</span>
<span class="cstat-no" title="statement not covered" >					const huodong = res.huodong;</span>
<span class="cstat-no" title="statement not covered" >			        wx.config({</span>
			          appId: config.appId,  // appID 公众号的唯一标识
			          timestamp: config.timestamp, // 生成签名的时间戳
			          nonceStr: config.nonceStr, //  生成签名的随机串
			          signature: config.signature, // 生成的签名
			          jsApiList: [
			            'updateAppMessageShareData',
			            'updateTimelineShareData',
			          ]
			        });
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >			        wx.ready(() =&gt; {</span></span>
<span class="cstat-no" title="statement not covered" >			          var shareData = {</span>
			            title: huodong.title,
			            desc: huodong.introduction,
			            link:  localhostPath,
			            imgUrl:
			               huodong.picurl,
			          };
			          //点击要去分享
<span class="cstat-no" title="statement not covered" >			          wx.updateAppMessageShareData(shareData);</span>
<span class="cstat-no" title="statement not covered" >			          wx.updateTimelineShareData(shareData);</span>
			         
			        });
			      });
			    },
			// downloadByBlob(url,name) {
			//     let image = new Image()
			//     image.setAttribute('crossOrigin', 'anonymous')
			//     image.src = url
			//     image.onload = () =&gt; {
			//       let canvas = document.createElement('canvas')
			//       canvas.width = image.width
			//       canvas.height = image.height
			//       let ctx = canvas.getContext('2d')
			//       ctx.drawImage(image, 0, 0, image.width, image.height)
			//       canvas.toBlob((blob) =&gt; {
			//         let url = URL.createObjectURL(blob)
			//         download(url,name)
			//         // 用完释放URL对象
			//         URL.revokeObjectURL(url)
			//       })
			//     }
			//   },
<span class="fstat-no" title="function not covered" >			base64ToBlob(baseUrl) {</span>
<span class="cstat-no" title="statement not covered" >				let arr = baseUrl.split(',')</span>
<span class="cstat-no" title="statement not covered" >				let mime = arr[0].match(/:(.*?);/)[1],</span>
					bstr = atob(arr[1]),
					n = bstr.length,
					u8arr = new Uint8Array(n)
<span class="cstat-no" title="statement not covered" >				while (n--) {</span>
<span class="cstat-no" title="statement not covered" >					u8arr[n] = bstr.charCodeAt(n)</span>
				}
<span class="cstat-no" title="statement not covered" >				return new Blob([u8arr], {</span>
					type: mime
				})
&nbsp;
&nbsp;
			},
&nbsp;
<span class="fstat-no" title="function not covered" >			draw() {</span>
<span class="cstat-no" title="statement not covered" >				var that = this;</span>
<span class="cstat-no" title="statement not covered" >				that.loadings = true</span>
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >				html2canvas(that.$refs.box, {</span></span>
					useCORS: true,
					scale: window.devicePixelRatio * 2,
					allowTaint: true, // 允许跨域图片
				}).then(function(canvas) {
<span class="cstat-no" title="statement not covered" >					that.loadings = false</span>
					//console.log(canvas.toDataURL())
					//that.$refs.addAlert.appendChild(canvas);
<span class="cstat-no" title="statement not covered" >					that.imgUrl = canvas.toDataURL("image/png") //将canvas转为base64图片</span>
<span class="cstat-no" title="statement not covered" >					that.show = true</span>
				});
			},
<span class="fstat-no" title="function not covered" >			is_weixn() {</span>
<span class="cstat-no" title="statement not covered" >				var ua = window.navigator.userAgent.toLowerCase();</span>
<span class="cstat-no" title="statement not covered" >				if (ua.match(/MicroMessenger/i) == 'micromessenger') {</span>
<span class="cstat-no" title="statement not covered" >					this.weixin = true</span>
&nbsp;
&nbsp;
				} else {
<span class="cstat-no" title="statement not covered" >					this.weixin = false</span>
				}
			},
			// downImg() { // 下载图片
			// 	let blob = this.base64ToBlob(this.imgUrl); 
&nbsp;
			// 	let a = document.createElement('a')
			// 	a.setAttribute('download', 'poster.png')
			// 	a.href = URL.createObjectURL(blob);
			// 	a.click()
			// },
<span class="fstat-no" title="function not covered" >			downImg() {</span>
<span class="cstat-no" title="statement not covered" >				let aLink = document.createElement('a');</span>
<span class="cstat-no" title="statement not covered" >				let blob = this.base64ToBlob(this.imgUrl); //new Blob([content]);</span>
&nbsp;
<span class="cstat-no" title="statement not covered" >				let evt = document.createEvent("HTMLEvents");</span>
<span class="cstat-no" title="statement not covered" >				evt.initEvent("click", true, true); //initEvent 不加后两个参数在FF下会报错  事件类型，是否冒泡，是否阻止浏览器的默认行为</span>
<span class="cstat-no" title="statement not covered" >				aLink.download = 'poster.png';</span>
<span class="cstat-no" title="statement not covered" >				aLink.href = URL.createObjectURL(blob);</span>
<span class="cstat-no" title="statement not covered" >				aLink.dispatchEvent(new MouseEvent('click', {</span>
					bubbles: true,
					cancelable: true,
					view: window
				})); //兼容火狐
			},
<span class="fstat-no" title="function not covered" >			qrcodes(text) {</span>
<span class="cstat-no" title="statement not covered" >        let width = document.documentElement.clientWidth*(155/375)</span>
<span class="cstat-no" title="statement not covered" >        console.log(width);</span>
<span class="cstat-no" title="statement not covered" >        let height = width</span>
<span class="cstat-no" title="statement not covered" >				let qrcode = new QRCode('qrcodes', {</span>
					width,
					height,// 高度  
					text: text, // 二维码内容  
					// render: 'canvas' // 设置渲染方式（有两种方式 table和canvas，默认是canvas）  
					// background: '#f0f'  
					// foreground: '#ff0'  
				})
<span class="cstat-no" title="statement not covered" >				console.log(qrcode)</span>
			},
&nbsp;
&nbsp;
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >			recordapi() {</span></span>
<span class="cstat-no" title="statement not covered" >				var that = this;</span>
&nbsp;
				// var userid = that.$cookieStore.getCookie('userid');
				// if (!userid) {
				// 	this.$router.push('Logins')
				// 	return false;
				// }
<span class="cstat-no" title="statement not covered" ><span class="fstat-no" title="function not covered" >				that.$api.post("/Index/share", {</span></span>
					userid: -1
				}).then(res =&gt; {
<span class="cstat-no" title="statement not covered" >					this.loadings = false;</span>
<span class="cstat-no" title="statement not covered" >					that.info = res.info;</span>
					
&nbsp;
<span class="cstat-no" title="statement not covered" >					this.qrcodes(window.location.origin);</span>
&nbsp;
&nbsp;
&nbsp;
&nbsp;
					// that.QRlink=window.location.host+'#/Usercont?id='+res.info.idss
					//console.log(window.location.origin)
					// setTimeout(() =&gt; {
					//        this.draw()
&nbsp;
					//          }, 3000)
&nbsp;
				});
			},
&nbsp;
&nbsp;
		}
	}
&lt;/script&gt;
&nbsp;</pre></td></tr>
</table></pre>
<div class='push'></div><!-- for sticky footer -->
</div><!-- /wrapper -->
<div class='footer quiet pad2 space-top1 center small'>
  Code coverage
  generated by <a href="https://istanbul.js.org/" target="_blank">istanbul</a> at Mon Nov 27 2023 23:16:11 GMT+0800 (GMT+08:00)
</div>
</div>
<script src="..\..\prettify.js"></script>
<script>
window.onload = function () {
        if (typeof prettyPrint === 'function') {
            prettyPrint();
        }
};
</script>
<script src="..\..\sorter.js"></script>
</body>
</html>
